Fully functional LOGIN and REGISTER