Added error messages

Added error messages to code for login and registration issues

Fixed a few typos in comments