added checks for trying to register with the same user name as someone else and using 2 different passwords.
also added error messages to the login and register pages describing why your login or register attempt failed