login and reg fixed