login logic merged in single activity