added logic to put logged in as, login abilities