wokring with register application