working login, registration and pass recovery