fix login in reg