Bugs on login fixed