Working password reset and login system

Missing error messages.