maj index ready to send to server add the following method : register, login