login module with DB added