public function action_create() { if (Input::has('email') && Input::has('password') && Input::has('email2') && Input::has('password2')) { if (Input::get('email') == Input::get('email2') && Input::get('password') == Input::get('password2')) { $size = Account::where_email(Input::get('email')); if ($size->count() == 0) { $email = Input::get('email'); $password = Hash::make(Input::get('password')); $account = new Account(); $account->email = $email; $account->password = $password; $account->save(); Emailer::signUpConfirmation($email); echo "Signup successful, please check your email for confirmation or login using the login bar"; // return Redirect::to('/'); } else { echo "That email is already registered."; } } else { if (Input::get('email') != Input::get('email2')) { echo "Emails do not match."; } if (Input::get('password') != Input::get('password2')) { echo "Passwords do not match."; } } } else { echo 'Error: Invalid input.'; } }