add logger, worked on user login functionality