Login form and rest service