Fixes on login class