Modified login backend