Minor changes to user log in page to create a cookie