Omandtc regfixtest

1. Fixed leader registration: now leader can't be registered twice with same email or username
2. Created unit test for leader registration with using test database and JDBCTemplate