back end changes for login