Register now adds students to database correctly.