attaching login module with database