Separated out more code. Added check for user account and redirection to account creation