added login file
refactored login to differernt file
fixed login module issue
fixed wrong db hostname