fixing method in login activity.