created applications controller and set root index
adding app and user authentication