fixing ajax login