added loading for login