Refactored to use abilites for login