changed login to dialog rather than separate activity