Revised HTML5 pattern matching
Removed reference to login_manager for now.
Updated log_in function.
Added log in and out functionality.