fixed that AJAX thing, now the login is working properly.