Fix login and create new row when create user