added more database model info, frontend validation, some frontend style