Fix for issue #766 - Implemented redirect on sign out
A bit of code formatting