Fixed Bugs: Use of WebSecurity Class