Moved login to separate activity.