Added remember me & fixed cross site ajax call