Major updates to add registration and login