working login rest service 2