changed login order
added missing semicolon. oops.
changed logical order of a few things for backend login purposes