Validation code completed
TODO: View