fixed registration not redirecting
Corrected typo in error message
AJAX logout