made form take input, add user to db and added flash notification