fixing errors in login and registration routes