added the login inside the helper
added the login inside the helper
added the login inside the controller
newly added the lib file with success msg