Login logic to check organization
Update helper with new functions