Implemented centalized ajax error display, login attempts limit by lockout, and save/lookup of login credentials using localStorage (still buggy).