adding test for login and restricted