Route for working with userdata via ajax calls
Use session for store previous url (referrer)
Fixes for login page