adding the basic version which prints the user login status