Fixed vaidation of empty passwords