fix issue with register form
password hashing
small tweaks