login and check added