Added login to store username in cookie and create a default user