Register functionality added