login page now gives proper errors