basic login connected between UI and backend