Added ajax call for login