Code clean up is done. always store userid in lowercase for password authentication