Began login handling, and base code for loading spinner