Now after registration it directly logins the user and redirects to dashboard