added new login implementation