updated login and main to function correctly when webgl not available