Solved bug where fields input value does not get filled on initialize