added range for low ratings.
Improving the authentication routine.