registration works now for the database, have to take care of frontend