logged in and logged out validations