master Set user id and cookie if user logged in
master Login, logout in main menu