Fixed the updating of the states and fixed the secure authenticated
Fixed the cascadeTypes of these models
Fixed type
Stylistic fixes
Improved the usage of if statements in the view