fix sign out problems and edited permitted parameters in application con...

...troller.