Fix 1242: Password length error

Solved this bug: http://eden.sahanafoundation.org/ticket/1242

Nursix, please review it.

vishrut009