small bug fixes
Fixed some issues related to login