Registration now creates a user account. Also added hashes and flashes