added functionality to force activation regardless of optios
refactored login failure third parameter and added in incrementing and clearing of login attempts