re-enabled login function