Added support for login. Also fixed bugg dues to namespace errors in Mojarra 2.2.0