renamed resource and models to fit naming convention
big refactor and fixing user registration