Added error-checking for create_account page