Fixed error message for empty password confirmation, added test for space as password