Fix client side password validation, fix login and register form repopulation