Fixed login appearance and function
Improved PHP error handling