Added registration and login/logout funcionalities