Moved onSubmit to jQuery click event
Change background colors
Moved login functions into stateManager object