Updated login and registration