login and register errors fixed
fixed some errors in Contact.php