updates ver 0.4

Changes to database design, fixed user registration validation