Fixed #13
Added https and implemented authentication in a better way