Fixing some error on form inputs and hidding some actions