if user is not loggedin, redirect to login page
merging conflict