Add post to controllers
Relocate index and register logic to a controller
Added controller folder