Backend changes to registration and login system