added error messages and redirect to basic userpage