overhauled and fixed login and registration form errors