Inserted query for login and query for setmanager to update both data