Created backend functionality for login/register/changeSetts