working login rest service