Create login test and method function
Add register test and method