the basic user login logic and need test and page