Fixed the Login and Register