new layout for login. added ajax authentication