Refactor login method - one method instead of two for different roles