Desktop code final
Mobile code with and without login