working on username overriding
store username in cookie
moving event handling hooks into its own namespace. fixing consecutive signins issue