Login connection with rest