coded own version of REST Client, changed function calls in login&register activities