Server side password length check added.

Small changes