Patch for ticket #1407

Fixed the bug as password strength is shown appropriately.