fixed login issue and corrected login/registration templates