Fixed Login/Registration Bugs