Moved login to separate activity.
Fixed progress dialog window leak