Added register/reset

Should we consider using JXLoginPanel?