Add functions to loginViewController

Form still needs validation