Add parameterized unit test and more secure password registration for user login