added login for registerd user, backup 6.5.13