Users and passwords get stored into database correctly