form logs in and redirect working but error message bug
implemented pretty errors for login