APY-112: Make authentication user name case insensitive

added str.lower instead of sqlalchemy lower func (review comments)