Create a Login module and User registration module using Role-based spring boot security. The user  should be able to register and log in to the application using his/her credentials. This data should be  stored in a MySQL database as this should interact with the web-based application.